package com.gong.DesignPattern.PrototypePattern.shen;

/**
 * @author GongChang
 * @version 1.0
 * @date 2021/6/11 0011 9:02
 */
public class TestShen {

    public static void main(String[] args) throws CloneNotSupportedException {
        Student student = new Student();

        Student student1 = (Student) student.clone();
        student1.subject.name = "subject1";

        System.out.println(student.subject.name);
        System.out.println(student1.subject.name);
    }
}
